/* 查询 */
export const formWorkTable = (page,size,templateName)=>{
  if(!templateName){
    return axios({
      url:`/cms/template/${page}/${size}`,
      method:'get'
    })
  }else{
    return axios({
      url:`/cms/template/${page}/${size}?templateName=${templateName}`,
      method:'get'
    })
  }
}

/* 详情 */
export const formworkDetails = (templateId)=>{
  return axios({
    url:`/cms/template/${templateId}`,
    method:'get'
  })
}

/* 新增 */
export const addFormwork = (data)=>{
  return axios({
    url:`/cms/template`,
    method:'post',
    data
  })
}

/* 修改 */
export const editFormwork = (data)=>{
  return axios({
    url:`/cms/template`,
    method:'put',
    data
  })
}

/* 删除 */
export const delFormwork = (templateId)=>{
  return axios({
    url:`/cms/template/${templateId}`,
    method:'delete'
  })
}
/* 归属系统 */
export const systemData = ()=>{
  return axios({
    url:`/rbac/ccmsDomainAuth/getDomainAuth`,
    method:'post'
  })
}
